package ex3.board;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


public class ButtonPressed implements ActionListener {
	
	private int _i;
	private int _j;
	
	private GamePanel _gamePanel;
 	
	public ButtonPressed(int i, int j,GamePanel gamePanel){
		
		this._i = i;
		this._j = j;
		this._gamePanel = gamePanel;
	}
	

	@Override
	public void actionPerformed(ActionEvent arg0) {
			
		this._gamePanel.buttonPressed(this._i, this._j);
		
	}

}
